﻿function itemVM(index, value)
{
    var self = this;
    self.index = ko.observable(index);
    self.value = ko.observable(value);
}
function arrayVM(name)
{
    var self = this;
    var deferred = $.Deferred();
    self.items = ko.observableArray([]);
    self.name = name;
    self.get = function (index) {
        $.getJSON('/api/CachedArray/Get?name=' + name + '&id=' + index, function (json) {

        });
    }
}

